.class public Lcom/waiqin365/lightapp/kehu/b/j;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Ljava/util/ArrayList;

.field private b:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 0

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/b/j;->b:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/kehu/b/j;->a:Ljava/util/ArrayList;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/b/j;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/j;->b:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/util/ArrayList;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/b/j;->a:Ljava/util/ArrayList;

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/j;->a:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/j;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    goto :goto_0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/j;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 7

    const v6, 0x7f080293

    const/16 v5, 0x8

    const/4 v4, 0x0

    if-nez p2, :cond_0

    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/n;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/b/n;-><init>(Lcom/waiqin365/lightapp/kehu/b/j;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/j;->b:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v2, 0x7f030038

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v0, 0x7f0c01a4

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/n;->a:Landroid/widget/TextView;

    const v0, 0x7f0c01a8

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/n;->b:Landroid/widget/TextView;

    const v0, 0x7f0c01ac

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/n;->c:Landroid/widget/TextView;

    const v0, 0x7f0c01a9

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/view/CustomGridView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/n;->d:Lcom/waiqin365/lightapp/kehu/view/CustomGridView;

    const v0, 0x7f0c01ad

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/view/CustomGridView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/n;->e:Lcom/waiqin365/lightapp/kehu/view/CustomGridView;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/j;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/i;

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/n;->a:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/b/i;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/b/i;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/n;->b:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/n;->c:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/n;->d:Lcom/waiqin365/lightapp/kehu/view/CustomGridView;

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/kehu/view/CustomGridView;->setVisibility(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/n;->e:Lcom/waiqin365/lightapp/kehu/view/CustomGridView;

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/kehu/view/CustomGridView;->setVisibility(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/n;->d:Lcom/waiqin365/lightapp/kehu/view/CustomGridView;

    new-instance v3, Lcom/waiqin365/lightapp/kehu/b/k;

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/b/i;->b:Ljava/lang/String;

    invoke-direct {v3, p0, v4}, Lcom/waiqin365/lightapp/kehu/b/k;-><init>(Lcom/waiqin365/lightapp/kehu/b/j;Ljava/lang/String;)V

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kehu/view/CustomGridView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/n;->e:Lcom/waiqin365/lightapp/kehu/view/CustomGridView;

    new-instance v2, Lcom/waiqin365/lightapp/kehu/b/k;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/i;->c:Ljava/lang/String;

    invoke-direct {v2, p0, v0}, Lcom/waiqin365/lightapp/kehu/b/k;-><init>(Lcom/waiqin365/lightapp/kehu/b/j;Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kehu/view/CustomGridView;->setAdapter(Landroid/widget/ListAdapter;)V

    :goto_1
    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/n;

    move-object v1, v0

    goto :goto_0

    :cond_1
    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/n;->b:Landroid/widget/TextView;

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/n;->c:Landroid/widget/TextView;

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/n;->d:Lcom/waiqin365/lightapp/kehu/view/CustomGridView;

    invoke-virtual {v2, v5}, Lcom/waiqin365/lightapp/kehu/view/CustomGridView;->setVisibility(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/n;->e:Lcom/waiqin365/lightapp/kehu/view/CustomGridView;

    invoke-virtual {v2, v5}, Lcom/waiqin365/lightapp/kehu/view/CustomGridView;->setVisibility(I)V

    iget-object v3, v1, Lcom/waiqin365/lightapp/kehu/b/n;->b:Landroid/widget/TextView;

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/i;->b:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/b/j;->b:Landroid/content/Context;

    invoke-virtual {v2, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    :goto_2
    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/n;->c:Landroid/widget/TextView;

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/i;->c:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/j;->b:Landroid/content/Context;

    invoke-virtual {v0, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    :goto_3
    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    :cond_2
    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/i;->b:Ljava/lang/String;

    goto :goto_2

    :cond_3
    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/i;->c:Ljava/lang/String;

    goto :goto_3
.end method
